cmake_minimum_required(VERSION 3.26)
project(opencv_study)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# mac1芯片运行成功 /Users/HOX4SGH/Project/CPP/vcpkg/packages/opencv4_arm64-osx
#set(OpenCV_DIR "${VCPKG_INSTALLED_DIR}/arm64-osx/share/opencv4")
#set(OpenCV_DIR "/media/data/opt/vcpkg/x64-linux/share/opencv4")

find_package(OpenCV REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})

set(CMAKE_CXX_STANDARD 17)

add_executable(opencv_study main.cpp)

target_link_libraries(opencv_study ${OpenCV_LIBS}) # M1芯片运行需要配置这个。
